package xyz.kail.demo.easyrules.hello.annotation;

import org.jeasy.rules.api.Facts;
import org.jeasy.rules.api.Rules;
import org.jeasy.rules.api.RulesEngineListener;

public class HelloEngineListener implements RulesEngineListener {

    @Override
    public void beforeEvaluate(Rules rules, Facts facts) {
        System.out.println("HelloEngineListener.beforeEvaluate");
        System.out.println("    rules：" + rules);
        System.out.println("    facts:" + facts);
    }

    @Override
    public void afterExecute(Rules rules, Facts facts) {
        System.out.println("HelloEngineListener.afterExecute");
        System.out.println("    rules：" + rules);
        System.out.println("    facts:" + facts);
    }
}
